package com.gitee.qdbp.general.common.biz.oplog.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import com.gitee.qdbp.able.exception.ServiceException;
import com.gitee.qdbp.able.jdbc.ordering.OrderPaging;
import com.gitee.qdbp.able.jdbc.paging.PageList;
import com.gitee.qdbp.general.common.api.oplog.model.OperateRecordBean;
import com.gitee.qdbp.general.common.api.oplog.model.OperateRecordWhere;
import com.gitee.qdbp.general.common.api.oplog.service.IOperateRecordQueryer;
import com.gitee.qdbp.general.common.biz.oplog.basic.OperateRecordBasic;

/**
 * 操作记录业务处理类
 *
 * @author zhh
 * @version 170522
 */
@Service
@Transactional(readOnly = true)
public class OperateRecordQueryer implements IOperateRecordQueryer {

    /** 操作记录DAO **/
    @Autowired
    private OperateRecordBasic operateRecordBasic;

    @Override
    public OperateRecordBean find(String id) throws ServiceException {
        return operateRecordBasic.findById(id);
    }

    @Override
    public OperateRecordBean find(OperateRecordWhere where) throws ServiceException {
        return operateRecordBasic.find(where);
    }

    @Override
    public PageList<OperateRecordBean> list(OperateRecordWhere where, OrderPaging paging) throws ServiceException {
        return operateRecordBasic.list(where, paging);
    }

}